/* 
 * File:   tree_model.cpp
 * Author: jolo
 * 
 * Created on: 12. Oktober 2011, 14:06
 * Lincense: New BSD License (The BSD 2-Clause License)
 */

#include "tree_model.hpp"

#include <model/entity.hpp>

namespace widgets
{

    tree_model::tree_model(model::entity_ptr e, QObject* p)
    : standard_item_model(p),
    root_entity_(e)
    {
    }

    tree_model::~tree_model()
    {
    }

    void tree_model::set_root_entity(model::entity_ptr r)
    {
        root_entity_ = r;
    }
}